﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="GerenciarOportunidade.aspx.cs" Inherits="CursoUNICEUB.GerenciarOportunidade" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function mostrarEmail() {
            $("#Email").show("slow");
            $("#lblEmail").hide("slow");

        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <h1>
        Gerenciar Oportunidades</h1>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
        DataSourceID="LinqDataSource1" ForeColor="#333333" GridLines="None" Width="100%">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:TemplateField HeaderText="Nome da Empresa">
                <HeaderStyle Width="40%" HorizontalAlign="Center" />
                <ItemTemplate>
                    <%# getNomeEmpresa((GridViewRow)Container)%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="DescricaoCargo" HeaderText="Cargo"  >
                <HeaderStyle Width="30%" HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="Salário">
                <HeaderStyle Width="20%" HorizontalAlign="Center" />
                <ItemTemplate>
                    <%# getSalario((GridViewRow)Container)%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="A/D">
                <HeaderStyle Width="10%" HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:Button Text='<%#Eval("AtivaDesc")%>' CommandArgument='<%# Eval("Codigo") %>'
                        runat="server" ID="btnAcao" OnClick="btnAcao_Click" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="FastDATA.DCCursoDataContext"
        EntityTypeName=""
        TableName="DEOportunidades" 
        OrderBy="Data desc">
        <WhereParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="Codigo" QueryStringField="codigo"
                Type="Int32" />
        </WhereParameters>
    </asp:LinqDataSource>
</asp:Content>
